package com.atguigu.jvm.chap05;

// -Xms490m -Xmx490m -Xlog:gc*
public class BigObj {
    public static void main(String[] args) {
        Object o = new Object();

        while (true) {
            //o = new Object();
            o = new Dog2();
        }
    }
}

class Dog2 {
    Integer id;
    String dogName;
    byte[] bytes = new byte[500 * 1024 * 1024];
}